package com.gagakuai.framework.event;

import org.camunda.bpm.engine.RuntimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/*
 * @program: common-starters
 * @description:
 * @author: houhong
 * @create: 2022-12-13 21:24
 */
@Component
public class MsgEventTask {

    @Autowired
    private RuntimeService runtimeService;


    /*
     * engine 先通过ACT_RU_EVENT_SUBSCR 表
     * 查询到流程定义，然后根据流程定义去触发消息
     */
    public void msgStartProcess() {

        String messageName = "";
        runtimeService.startProcessInstanceByMessage(messageName);
    }

}